// ApiService.java
package com.example.app3_1;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Query;

public interface ApiService {
    @GET("api/users")
    Call<UserListResponse> getUsers();

    // 或者明确指定 headers
    @GET("api/users")
    Call<UserListResponse> getUsersWithAuth(
            @Header("Authorization") String authorization,
            @Header("X-API-Key") String apiKey
    );
}